package controler;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

import java.util.Observable;

import template.AbstractListener;

import model.BooleanModel;



public class StartListener extends AbstractListener implements ActionListener{
	
	private static final long serialVersionUID = 1L;
	
	public StartListener(Observable obs1, Observable obs2){
		addModel(obs1);
		addModel(obs2);
	}
	
	public void actionPerformed(ActionEvent evt){
		BooleanModel boolModel1 = (BooleanModel)getModel(0);
		BooleanModel boolModel2 = (BooleanModel)getModel(1);
		
		boolModel1.setValue(true);
		boolModel2.setValue(true);
	}
}
